﻿<script>
    //alert('El Registro se Realizó Satisfactoriamente...');
    window.opener.parent.document.getElementById('idItem').value = '@ViewBag.ID_TABLA';
    window.opener.parent.document.getElementById('nameControl').value = '@ViewBag.NOM_TABLA';
    window.opener.parent.document.getElementById('spanClic').click();   
    this.close();
</script>